package com.example.lab2.infra.repository.impl;

import com.example.lab2.domain.entity.Job;
import com.example.lab2.domain.repository.JobRepository;
import com.example.lab2.infra.mapper.JobMapper;
import org.springframework.stereotype.Component;


@Component
public class JobRepositoryImpl implements JobRepository {

    private final JobMapper jobMapper;

    public JobRepositoryImpl(JobMapper jobMapper) {
        this.jobMapper = jobMapper;
    }

    @Override
    public Job findJobById(String jobId) {
        return jobMapper.findJobById(jobId);
    }
}
